package cn.codeforfun.shared;

import javax.swing.*;

public class LookAndFeelUtils {
    /**
     * 根据系统外观设置ui
     */
    public static void setWindowsLookAndFeel() {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception e) {
            JOptionPane.showMessageDialog(null,
                    "系统错误：" + e, "警告",
                    JOptionPane.ERROR_MESSAGE);
        }
    }

}
